|
|||||||||||||||||||
This license of Clover is provided to support the development of Flock only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
Folding.java | - | 0% | 0% | 0% |
|
1 |
package net.sf.flock.webapp.folding; |
|
2 |
|
|
3 |
import net.sf.tapestry.BaseComponent; |
|
4 |
import net.sf.tapestry.components.Block; |
|
5 |
|
|
6 |
/** |
|
7 |
* @version $Revision: 1.3 $ |
|
8 |
* @author $Author: phraktle $ |
|
9 |
*/ |
|
10 |
public class Folding extends BaseComponent { |
|
11 |
|
|
12 |
private boolean folded = false; |
|
13 |
private boolean disabled = false; |
|
14 |
private Block headerBlock; |
|
15 |
|
|
16 | 0 |
public boolean isDisabled() { |
17 | 0 |
return disabled; |
18 |
} |
|
19 |
|
|
20 | 0 |
public void setDisabled(boolean disabled) { |
21 | 0 |
this.disabled = disabled; |
22 |
} |
|
23 |
|
|
24 | 0 |
public boolean isFolded() { |
25 | 0 |
return folded; |
26 |
} |
|
27 |
|
|
28 | 0 |
public void setFolded(boolean folded) { |
29 | 0 |
this.folded = folded; |
30 |
} |
|
31 |
|
|
32 | 0 |
public String getFoldBodyStyle() { |
33 | 0 |
return this.folded ? "margin-left: 1em; display: none;" : "margin-left: 1em;"; |
34 |
} |
|
35 |
|
|
36 | 0 |
public Block getHeaderBlock() { |
37 | 0 |
return headerBlock; |
38 |
} |
|
39 |
|
|
40 | 0 |
public void setHeaderBlock(Block headerBlock) { |
41 | 0 |
this.headerBlock = headerBlock; |
42 |
} |
|
43 |
|
|
44 |
} |
|
45 |
|
|